package y2020.m03.d22;

public class SearchLastString {
    public static void main(String[] args) {
        String str = "Hello world ,Hello java";
        int lastIndex = str.lastIndexOf("java");
        System.out.println("java 字符串最后出现的位置： " + lastIndex);
    }
}
